﻿#light

module NullCoalesce

//1st attempt, using ??
//let q = "" ?? "" // This language construct is deprecated. Consider using 'match <expr1> with null -> <expr2> | v -> v.'

// 2nd attempt, does not compile
//let (??) a b = if a = null then b else a

// 3rd attempt
let (<??>) a b = if a = null then b else a

//let op_QmarkQmark a b = if a = null then b else a
//let q = "" ?? "" // This language construct is deprecated. Consider using 'match <expr1> with null -> <expr2> | v -> v.'


// 3rd attempt


//let inline (<??>) a b = if a = null then b else a

